package com.example.service1.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 服务1的service层接口
 */
@FeignClient(name = "service2")
public interface RemoteService1 {

    //用于调用服务2
    @RequestMapping("s2")
    String s2();

}